package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 授权项目对象 sys_user_project
 * 
 * @author cooc
 * @date 2024-06-22
 */
public class SysUserProject extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 人员与项目关系主键 */
    private Long id;

    /** 人员id */
    @Excel(name = "人员id")
    private Long userId;

    /** 项目id */
    @Excel(name = "项目id")
    private Long projectId;


    public SysUserProject() {
    }

    public SysUserProject(Long userId, Long projectId) {
        this.userId = userId;
        this.projectId = projectId;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("projectId", getProjectId())
            .toString();
    }
}
